{include file="public/uheader"}
<div class="main order">
    {include file="user/common"}
    <div class="ortab">
        <div class="tabbar bar2">
            {notempty name="apply"}
            <a class="active" href="javascript:;">
                <p>谁给我投票</p>
                <span>{$allForOne['total']}</span>
                <div class="line"></div>
            </a>
            {/notempty}
            <a {empty name="apply"}class="active"{/empty} href="javascript:;">
                <p>我给谁投票</p>
                <span>{$oneForAll['total']}</span>
                <div class="line"></div>
            </a>
        </div>
        <div class="tabcontent purplebox">
            {notempty name="apply"}
            <ul class="active toulist">
                {foreach name="allForOne['list']" item="val"}
                <li>
                    <a href="javascript:void(0);" class="fulink">
                        <div class="img">
                            <img src="{$val.avatar}" alt="" class="simg">
                        </div>
                        <div class="msg">
                            <p class="gray">{$val.nickname}</p>
                            <span>给我贡献了{$val.num}票</span>
                        </div>
                    </a>
                </li>
                {/foreach}
            </ul>
            {/notempty}
            <ul {empty name="apply"}class="active toulist"{/empty} class="toulist">
                {foreach name="oneForAll['list']" item="val"}
                <li>
                    <a href="" class="fulink">
                        <div class="img">
                            <img src="{$val['avatar']}" alt="" class="simg">
                        </div>
                        <div class="msg">
                            <p class="gray">{$val['baby_name']}</p>
                            <span>我贡献了{$val['num']}票</span>
                            <button class="sbtn f-right toupiao" data-id="{$val['apply_id']}">投ta一票</button>
                        </div>
                    </a>
                </li>
                {/foreach}
            </ul>
        </div>
    </div>
    <div class="fot">
        <p>Copiright @2012-2018</p><p>美育儿meiyuer.com 版权所有</p>
    </div>
</div>

<script src="https://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="/static/index/js/layer/layer.js"></script>
<script type="text/javascript" src="/static/index/js/jquery-weui.min.js"></script>
<script type="text/javascript" src="/static/index/js/layer.js"></script>
<script type="text/javascript" src="/static/index/js/fastclick.js"></script>
<script type="text/javascript" src="/static/index/js/common.js"></script>
{include file="public/footer"}
